# -*- coding: utf-8 -*-
import json

data = json.load(open('map_data_merged.json', 'r', encoding='utf-8'))

print("=" * 60)
print("制瓷广场商务楼宇工作站 - 覆盖楼宇列表")
print("=" * 60)

for map_data in data['地图数据'].values():
    if '古城街道' in map_data.get('地图名称', ''):
        if '数据' in map_data:
            for field in ['工作站点位', '工作站列表']:
                if field in map_data['数据']:
                    for station in map_data['数据'][field]:
                        if '制瓷广场' in station.get('工作站名称', ''):
                            print(f"\n工作站: {station.get('工作站名称')}")
                            print(f"楼宇数量: {len(station.get('覆盖楼宇列表', []))}")
                            print("\n楼宇列表:")
                            for i, b in enumerate(station.get('覆盖楼宇列表', []), 1):
                                name = b.get('楼宇名称', '')
                                print(f"  {i}. {name}")

